<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main"/>
		<title>Welcome to Grails</title>
		<link rel="stylesheet" type="text/css" href="${resource(dir: 'css', file: 'main.css')}">
		<g:javascript src="login.js"/>
	</head>
	<body>
		<a href="#page-body" class="skip"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<g:if test="${flash.message}">
  			<div class="message" style="display: block">${flash.message}</div>
		</g:if>
		<div id="status" role="complementary">
			<h1>Login</h1>
			
			<g:form action="login" controller="authenticate">
				<label>Login</label><input id="usernameLogin" type="text" name="username"><br/>
				<label>Password</label><input id="passLogin" type="password" name="pass"><br/>
				<input id="loginSubmit" type="submit" value="Login">
			</g:form>
		</div>
		<script type="text/javascript">
			validateLogin();
		</script>
		<div>
			<g:link controller="alumno" action="create">Registrarse</g:link>
		</div>
	</body>
</html>
